package com.cmc.cloud.cmclink.doc.vo.specialcargoodovo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 特种货审批odo Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
public class SpecialCargoOdoBaseVO {

    private Long id;

    @Schema(description = "箱型ID")
    private Long cntrId;

    @Schema(description = "左侧开门还是右侧开门", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{SpecialCargoOdoBaseVO.openDirection.notBlank}")
    @Length(max = 64, message = "{SpecialCargoOdoBaseVO.openDirection.length}")
    private String openDirection;

    @Schema(description = "门是否取下", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{SpecialCargoOdoBaseVO.doorRemove.notNull}")
    private Boolean doorRemove;

    @Schema(description = "门打开的角度")
    @Length(max = 64, message = "{SpecialCargoOdoBaseVO.openAngle.length}")
    private String openAngle;

    @Schema(description = "货物描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便")
    @NotBlank(message = "{SpecialCargoOdoBaseVO.cargoDescription.notBlank}")
    @Length(max = 500, message = "{SpecialCargoOogBaseVO.cornerPostStatus.length}")
    private String cargoDescription;

}
